﻿using System;
using System.Collections.Generic;
using System.Text;
using HAVNet.Core;
using HAVNet.Core.String;


namespace HAVNet.Intros.AST
{
    public class ASTAccessorInterfaces : List<ASTAccessorInterface>
    {
        public override string ToString()
        {
            return Strings.joinobjs (" ", this);
        }
    }

    public class ASTAccessorInterface : ASTNode
    {
        protected ASTAttributeGroups _attrGroups = null;

        public ASTAttributeGroups attrGroups { get { if (null == _attrGroups) _attrGroups = new ASTAttributeGroups(); return _attrGroups; } }
    }

    public class ASTAccessorInterfaceGet : ASTAccessorInterface
    { 
        public override string ToString ()
        {
            return
                Lazy.toStringNN (_attrGroups, "", Environment.NewLine) +
                "get;";
        }
    }

    public class ASTAccessorInterfaceSet : ASTAccessorInterface
    {
        public override string ToString()
        {
            return
                Lazy.toStringNN (_attrGroups, "", Environment.NewLine) +
                "set;";
        }
    }
}
